//
//  DiaryListDAL.swift
//  YourName
//
//  Created by 李朋 on 2017/5/25.
//  Copyright © 2017年 李朋. All rights reserved.
//

import Foundation
//Data Access Layer 数据访问层
class DiaryListDAL {
    
    class func loadDiaryList(diaryId:Int) -> [Diary] {
        
        return Diary.mj_objectArray(withKeyValuesArray: FmdbDataManager.shared.getArray(diaryId: diaryId)) as! [Diary]
    }
    
}
